Print to standard out http headers initialize the page.
handles the standard http header of content type a carriage
return followed by two new lines, etc... for you. so that the
web server can return correct data back to the calling browser.
depending on the MIMETYPE value we have different behaviors
Type TEXT_HTML, will write out the http header, cookies, and start
the html for you if you want to be lazy and just concentrate whats
the <body> tag only.
Type TEXT_HTML_NO_CACHE is basically the same behavior as TEXT_HTML,
but it sets the browsers cache behavior to not cache the page.
Types TEXT_HTML_RAW and TEXT_HTML_NO_CACHE_RAW write out the HTTP header
information and cookie information only. It does not start the HTML for you!
you will have to write to standard out valid html.
* type RAW_TYPE is for when you have a content type that is not text/html or
* text/plain. for example you want to write to standard out JSON or XML data.
* you will have to set valid mime type for what you are sending back to the browser.
types TEXT_PLAIN and TEXT_PLAIN_NO_CACHE is a lazy short cut if you just want to return
to the browser anything that has the mime content-type of text/plain.
Print to standard out http headers initialize the page.
handles the standard http header of content type a carriage return followed by two new lines, etc... for you. so that the web server can return correct data back to the calling browser.
depending on the MIMETYPE value we have different behaviors
Type TEXT_HTML, will write out the http header, cookies, and start the html for you if you want to be lazy and just concentrate whats the <body> tag only.
Type TEXT_HTML_NO_CACHE is basically the same behavior as TEXT_HTML, but it sets the browsers cache behavior to not cache the page.
Types TEXT_HTML_RAW and TEXT_HTML_NO_CACHE_RAW write out the HTTP header information and cookie information only. It does not start the HTML for you! you will have to write to standard out valid html.
* type RAW_TYPE is for when you have a content type that is not text/html or * text/plain. for example you want to write to standard out JSON or XML data. * you will have to set valid mime type for what you are sending back to the browser.
types TEXT_PLAIN and TEXT_PLAIN_NO_CACHE is a lazy short cut if you just want to return to the browser anything that has the mime content-type of text/plain.